Micron Document
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
| SparkN0de-git | SparkN0de |
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Node / ReticulumProjects / Sideband.git / files / recipes / python3 / patches / cpython-311-ctypes-find-library.patch

Displaying Raw • Download


recipes/python3/patches/cpython-311-ctypes-find-library.patch master (8b8a5035) Text, 626 B

Tf85149--- Python-3.11.5/Lib/ctypes/util.py 2023-08-24 17:39:18.000000000 +0530
T7ee787+++ Python-3.11.5.mod/Lib/ctypes/util.py 2023-11-18 22:12:17.356160615 +0530
Tc9d1d9@@ -4,7 +4,15 @@
import sys
# find_library(name) returns the pathname of a library, or None.
Tf85149-if os.name == "nt":
T7ee787+
T7ee787+# This patch overrides the find_library to look in the right places on
T7ee787+# Android
T7ee787+if True:
T7ee787+ from android._ctypes_library_finder import find_library as _find_lib
T7ee787+ def find_library(name):
T7ee787+ return _find_lib(name)
T7ee787+
T7ee787+elif os.name == "nt":
def _get_build_version():
"""Return the version of MSVC that was used to build Python.


──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────